package com.atguigu.meinian.mapper;

import com.atguigu.meinian.pojo.Setmeal;
import com.atguigu.meinian.vo.SetmealVo;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

/**
 * @author zbystart
 * @create 2021-06-22 9:17
 */
public interface SetmealMapper {
    void insert(Setmeal setmeal);

    void insertTravelGroupIds(HashMap<String, Object> map);

    Setmeal selectSetmealById(@Param("id") Integer id);

    List<Integer> selectTravelGroupIdsBySetmealId(@Param("id") Integer id);

    Page<Setmeal> selectByPageAndCondition(@Param("queryString") String queryString);

    void updateSetmealById(SetmealVo setmeal);

    void deleteTravelGroupIdsBySetmealId(Integer id);

    int selectTravelGroupCountBySetmealId(Integer id);

    void deleteSetmealById(Integer id);

    String selectSetmealImageById(Integer id);
}
